Use PEGetNthSubreportInSection to retrieve a handle that is required to retrieve the name of a subreport.
DWORD CRPE_API PEGetNthSubreportInSection (
short printJob,
short sectionCode,
short subreportN );
Specifies the Section Codes, for the report section that contains the subreport. See Working with section codes. | |
Specifies the number of the subreport in the specified section. subreportN is zero based. The first report in the section will be 0, the second will be 1, etc. If there are no subreports in the section, the function will return 0. |
Returns a handle that is used to retrieve the name of the specified subreport.
Use PEGetSubreportInfo, to retrieve information about the subreport by passing the subreport handle returned by PEGetNthSubreportInSection.
Declare Function PEGetNthSubreportInSection Lib "crpe32.dll" (
ByVal printJob As Integer, ByVal sectionCode As Integer,
ByVal subreportN As Integer ) As Long
function PEGetNthSubreportInSection (
printJob: Word;
sectionCode: Smallint;
subreportN: Smallint
): DWORD stdcall;
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |